package com.xinxin.websocket.dataobject;

/**
 * @author ：史鑫鑫
 * @date ：Created in 2019/4/28 17:25
 */

import lombok.Data;

import java.util.Date;

@Data
public class Message {
    String id;
    String username;
    Date time;
    String type;
    String message;

    public Message() {
    }

    public Message(String id, String username, Date time, String type, String message) {
        this.id = id;
        this.username = username;
        this.time = time;
        this.type = type;
        this.message = message;
    }
}
